<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="<?php echo U("index");?>" method="post">
        <input type="hidden" name="pageSize" value="${pageSize}">
        <input type="hidden" name="pageCurrent" value="${pageCurrent}">
        <input type="hidden" name="orderField" value="${orderField}">
        <input type="hidden" name="orderDirection" value="${orderDirection}">
        <div class="bjui-searchBar">
            <a class="btn btn-orange" href="<?php echo U(add);?>" data-toggle="navtab" data-id="addArticle"  data-icon="paste">添加文章</a>
            <button type="button" class="btn-default">搜索</button>&nbsp;
            <input type="text" id="customNo" value="<?php echo ((isset($searchname) && ($searchname !== ""))?($searchname):""); ?>" name="keyword" class="form-control" size="30">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            <div class="pull-right">
                <a href="<?php echo U(del);?>" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids" class="btn btn-red">删除选中</a>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent">
     <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
            <tr>
                <th align="center" width="50">ID</th>
                <th align="center">标题</th>
                <th align="center" width="70">栏目</th>
                <th align="center"width="70">更新时间</th>
                <th align="center"width="50">点击</th>
                <th align="center" width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th align="center" width="200">操作</th>
            </tr>
        </thead>
        <tbody>
        <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr data-id="<?php echo ($vo["id"]); ?>">
                <td align="center"><?php echo ($vo["id"]); ?></td>
                <td><?php echo ($vo["title"]); ?></td>
                <td align="center"><?php echo ($vo["category_name"]); ?></td>
                <td align="center"><?php echo ($vo["addtime"]); ?></td>
                <td align="center"><?php echo ($vo["click"]); ?></td>
                <td align="center"><input type="checkbox" name="ids" data-toggle="icheck" value="<?php echo ($vo["id"]); ?>"></td>
                <td align="center">
                <a href="/Article/index/id/<?php echo ($vo["id"]); ?>.html" target="_blank"class="btn btn-green" >预览</a>
                    <a href="<?php echo U('edit',array('id'=>$vo['id']));?>" class="btn btn-green" data-toggle="navtab" data-id="form"  data-title="编辑文章--<?php echo ($vo["title"]); ?>">编辑</a>
                    <a href="<?php echo U('del',array('ids'=>$vo['id']));?>" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>
                </td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="<?php echo ($pageSize); ?>"><?php echo ($pageSize); ?></option>
                <option value="10">10</option>
                <option value="20">20</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>共<?php echo ($total); ?>条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($total); ?>" data-page-size="<?php echo ($pageSize); ?>" data-page-current="<?php echo ($pageCurrent); ?>"></div>
</div>